import logging
import yagmail
def Common():
    logging.basicConfig(filename="../case/giao.txt",format="%(filename)s -> %(lineno)d -> %(message)s",level=logging.DEBUG,filemode='w+')
    Common()

def email(qq):
    giao=yagmail.SMTP(host='smtp.qq.com',user='2314336117@qq.com',password='fefefefe')
    giao.send(to='2314336117@qq.com',subject='giaogiao',contents='giaogiaogiao',attachments=qq)
    email(['./case/test_sousuo.py'])